package com.example.demo;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:龙宝
 * Date:2023-11-06
 * Time:16:31
 */
@RestController
public class login {
    @RequestMapping("/login")
    public int login(HttpServletRequest request,String username, String password) {
        HttpSession session = request.getSession(true);
        return 1;
    }
}
